@extends('base')
@section('content')
    <div class="fix_header"></div>
    <div class="banner_1">
        <img src="{{asset('/img/ny_banner1.jpg')}}">
    </div>
    <div class="container">
        <section class="page">
            <div class="leftbox">
                <h1 class="cattitle">快租售</h1>
                <ul class="submenu">
                    <?php $parentcategory = 0 == $car->parentcategory ? substr($car->categoryid, 0, -4) : $car->parentcategory ?>
                    @foreach($nav_list[$parentcategory]['data'] as $nav)
                        <li><a href="{{url('/work/index/'.$nav['categoryid'])}}"
                               @if($nav['categoryid'] == $car->categoryid) class="on" @endif>{{$nav['name']}}</a></li>
                    @endforeach
                </ul>
                <div class="telep" style="padding-top: 0!important;"><img src="{{asset('img/phone.jpg')}}"/></div>
            </div>
            <div class="mainbox">
                <div class="pagecont">
                    <div class="title">
                        <h1 class="cattitle">租赁</h1>
                        <span>当前位置：首页>快租售>租赁</span>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="mainbox">
                    <div class="personal-profile">
                        <h2 class="am_tuya_cai_ti">车辆描述</h2>
                        <table border="1" cellspacing="0px" class="table-box">
                            <tr>
                                <td>车主姓名：<b><span style="color: #F26765;">{{$car->hasPoster($car->userid) ? $car->poster->nick : "没有该用户"}}</span></b></td>
                                <td>联系方式：<b>{{$car->hasPoster($car->userid) ? $car->poster->mobile : "没有该用户"}}</b></td>
                                <td>发布时间：<b>{{isset($car->pubtime) ? $car->pubtime : date("Y-m-d")}}</b></td>
                            </tr>
                            <tr>
                                <td>售价：<b><span style="color: #F26765;">{{$car->discount}}</span>元</b></td>
                                <td>车型：<b>{{$car->name}}</span>元</b></td>
                                <td>位置：<b>{{$car->addr}}</b></td>
                        </table>
                        <article>
                            <p class="zg-tit">车辆简介:</p>
                            {!! $car->describe !!}
                            <div class="personal-img">
                                @if("" != $car->imgurl)
                                    <p class="zg-tit">车辆照片:</p>
                                    @foreach(explode(',',$car->imgurl) as $img)
                                        <div class="upimg">
                                            <img src="{{$img}}">
                                        </div>
                                    @endforeach
                                @endif
                            </div>
                        </article>
                    </div>
                </div>
            </div>
            <div class="clear"></div>
        </section>
    </div>
@stop